package org.yzl.designPatterns.flyweight;

public abstract class IgoChessman {

    /**
     * 棋子颜色
     * @return
     */
    public abstract String getColor();

    /**
     * 描述
     * @param coordinates
     */
    public void display( Coordinates coordinates){
        System.out.println("color:"+this.getColor()+",x="+coordinates.getX()+",y="+coordinates.getY());
    }
}
